package utils.map;

import java.util.WeakHashMap;
import java.util.concurrent.ConcurrentHashMap;

/**
 * 带过期时间限制的线程安全的map.
 *
 * @author zhangbo
 * @since 1.0.0
 */
public class DateLimitMap<K, V> extends LimitedMap<K, V> {

    DateLimitMap(Long maxSurviveTimemills) {
        this.dataMap = new ConcurrentHashMap<>();
        this.conditionMap = new WeakHashMap<>();
        this.defaultLimitKey = new DateLimitKey(maxSurviveTimemills);
    }

}
